import Vue from 'vue'
import VueRouter from 'vue-router'
import home from './modules/home'
import carts from './modules/carts'
import goods from './modules/goods'
import itemize from './modules/itemize'
import login from './modules/login'
import register from './modules/register'
import install from './modules/install'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  ...home,
  ...carts,
  ...goods,
  ...itemize,
  ...login,
  ...register,
  ...install
]

const router = new VueRouter({
  routes
})

export default router
